#include <iostream>
using namespace std;

extern int i;

void change_i(int x)
{
    i = x;
}

int main()
{
    int i;
    i = 1;
    change_i(2);
    cout << "i = " << i << endl;
    return 0;
}